package com.yl.zqy.enums;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * @Description 返回结果 枚举类
 * @Author liang.yu
 * @Date 2024/3/24 11:47
 */
@Getter
@RequiredArgsConstructor
public enum ResultCode {
    SUCCESS(200, new String[]{"成功"}),
    PERMISSIONS_ERROR(10001, new String[]{"权限不足"}),
    LOGIN_ERROR(10002, new String[]{"账号密码不正确，请重新登录"}),
    SERVER_ERROR(10100, new String[]{"系统繁忙，请稍后再试"}),
    PARAMS_ERROR(10300, new String[]{"参数错误"}),
    FILE_UPLOAD_ERROR(10700, new String[]{"文件上传错误"}),
    FILE_DOWNLOAD_ERROR(10701, new String[]{"文件下载错误"}),
    FILE_LOAD_ERROR(10702, new String[]{"文件读取错误"}),
    UNKNOW_ERROR(99999, new String[]{"未知错误"});

    private final int code;
    private final String[] message;
}
